using System;
using System.Reflection;
using System.Drawing;
using System.Drawing.Imaging;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Windows.Forms;

using System.Security;
using System.Security.Permissions;
using System.Web;
using System.Web.Security;
using Microsoft.SharePoint.Security;


namespace stsdev {

  class WebPartSolutionProvider : ISolutionProvider {

    public string Title {
      get { return "Web Part Solution (C# Assembly)"; }
    }

    //Added 2/10/08 DMANN
    public bool LaunchSolutionOnComplete
    {
        get { return false; }
    }


    public void InitializeSolution() {
      SolutionBuilder.AssemblyDeployment = true;
      SolutionBuilder.SafeControlSettings = true;
      SolutionBuilder.DeploymentTarget = AssemblyDeploymentTarget.GlobalAssemblyCache;
      SolutionBuilder.CasPermissions = false;
    }

    public void AddSolutionItems() {
      WebPartBuilder.CreateWebPart("CustomWebPart1");
      WebPartBuilder.CreateWebPart("CustomWebPart2");
      WebPartBuilder.CreateWebPartFeature();  
    }
  }
}